/*
 * $Id: codetemplates.xml ver yyyy-mm-dd rb $
 */
package com.qy.wap.bean;

import com.qy.util.Constant;

/**
 *
 * @author ts-biao.zhang
 */
public class Column {

    private String name;
    private String type;
    private String length;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getLength() {
        return length;
    }
    public void setLength(String length) {
        this.length = length;
    }
    public String getCreateString()
    {
    	String returnString = "";
        if(Constant.VARCHAR_STRING.equals(this.type))
        	returnString =  name.replaceAll("\\.", "_") + " " + this.type + "(" + this.length + ")";
        else
        	returnString =  name.replaceAll("\\.", "_") + " " + this.type;
        return  returnString.replaceAll("\\$", "");
    }
}
